package com.service;

import com.domain.Employee;
import com.github.pagehelper.PageInfo;
import com.qo.QueryObject;
import org.apache.poi.ss.usermodel.Workbook;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;

/**
 * @author shkstart
 * @create 2022/3/11-11:28
 */
public interface EmployeeService {
    void delete(Long id);
    void save(Employee employee, Long[] roleIds);
    Employee get(Long id);
    List<Employee> listAll();
    void update(Employee employee, Long[] roleIds);
    PageInfo<Employee> query(QueryObject queryObject);

    /*Employee login(String username, String password);*/
    void updatePassword(Employee employee);

    void updateStatus(Employee employee);

    void batchDelete(Long[] ids);

    Employee selectByName(String name);

    Workbook exportXls();

    void importXls(MultipartFile file) throws IOException;
    List<Employee> selectByRoleSn(String[] sns);
}
